package com.xdwanj.util;

import com.sun.istack.internal.NotNull;

import java.io.File;

public class FileUtil {

    public static void deleteDir(@NotNull File file) {
        if (file.isDirectory()) {
            for (File f : file.listFiles())
                deleteDir(f);
        }
        file.delete();
    }
}
